import { Image, Switch } from "antd";
import { EyeFilled } from "@ant-design/icons";

function getcolumns(enable) {
  return {
    columns: [
      { title: "供应商名称", dataIndex: "name", key: "name" },
      {
        title: "联系地址",
        dataIndex: "address",
        key: "address",
        search: false,
      },
      { title: "联系方式", dataIndex: "phone", key: "phone" },
      { title: "供应商联系人", dataIndex: "contacter", key: "contacter" },
      {
        title: "商务对接人",
        dataIndex: "user_name",
        key: "user_id",
        valueType: "select",
        options: {
          path: "/user",
          tvalue: "id",
          tlabel: "real_name",
          params: {
            is_all: 1,
          },
        },
      },
    ],
    pathconfig: {
      enableadd: true,
      enableedit: true,
      enabledelete: true,
      enabledetail: true,
      add: "/supplier",
      edit: "/supplier",
      list: "/supplier",
      delete: "/supplier",
      detail: "",
    },
  };
}
export default getcolumns;
